package com.rapiddevsample;

import android.os.Bundle;

import com.v.rapiddev.base.AppManager;
import com.v.rapiddev.swipebacklayout.SwipeBackActivity;
import com.v.rapiddev.swipebacklayout.SwipeBackLayout;


/**
 * ClassType:
 * User:wenyunzhao
 * ProjectName:RapidDevSample
 * Package_Name:com.rapiddevsample
 * Created on 2016-11-24 18:09
 */

public class Senc extends BaseActivity {

    private SwipeBackLayout mSwipeBackLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


    }

    @Override
    public void init() {
        setContentView(R.layout.senc);
        mSwipeBackLayout = getSwipeBackLayout();
        mSwipeBackLayout.setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT);
    }

    @Override
    public void resume() {

    }

    @Override
    public void destroy() {
        AppManager.getAppManager().finishActivity(this);
    }

//    private void vibrate(long duration) {
//        Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
//        long[] pattern = {
//                0, duration
//        };
//        vibrator.vibrate(pattern, -1);
//    }
}
